﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Web.Core;

namespace Yuanlin.Business
{
    public class SpecialNews : Entity
    {
        private Property<string> title = new Property<string>();
        private Property<string> body = new Property<string>();
        private Property<int> province = new Property<int>();
        private Property<int> city = new Property<int>();
        private Property<int> town = new Property<int>();
        private Property<int> smallTown = new Property<int>();
        private Property<int> views = new Property<int>();
        private Property<DateTime> createDate = new Property<DateTime>();
        private Property<int> categoryId = new Property<int>();//新闻分类（种植、养殖、资材）
        private Property<int> categoryType = new Property<int>();//用来区分（会展、市场、之乡）
        private Property<int> kind = new Property<int>();//用来区分（花木、药材、水产等）

        public Property<int> Province
        {
            get
            {
                return province;
            }
            set
            {
                province = value;
            }
        }
        public Property<int> City
        {
            get
            {
                return city;
            }
            set
            {
                city = value;
            }
        }
        public Property<int> Town
        {
            get
            {
                return town;
            }
            set
            {
                town = value;
            }
        }
        public Property<int> SmallTown
        {
            get
            {
                return smallTown;
            }
            set
            {
                smallTown = value;
            }
        }
        public Property<int> Views
        {
            get { return views; }
            set { views = value; }
        }
        public Property<string> Title
        {
            get { return title; }
            set { title = value; }
        }
        public Property<string> Body
        {
            get { return body; }
            set { body = value; }
        }
        public Property<DateTime> CreateDate
        {
            get { return createDate; }
            set { createDate = value; }
        }
        public Property<int> CategoryId
        {
            get
            {
                return categoryId;
            }
            set
            {
                categoryId = value;
            }
        }
        public Property<int> CategoryType
        {
            get
            {
                return categoryType;
            }
            set
            {
                categoryType = value;
            }
        }
        public Property<int> Kind
        {
            get
            {
                return kind;
            }
            set
            {
                kind = value;
            }
        }
    }
}